﻿namespace Shop.Model.View.Admin.Goods;

/// <summary>
/// 商品详情
/// </summary>
public class GodDetailsVo
{
    /// <summary>
    /// 商品ID
    /// </summary>
    public long GId { get; set; }
    
    /// <summary>
    /// 商品名
    /// </summary>
    public string Name { get; set; }
    
    /// <summary>
    /// 封面图
    /// </summary>
    public string Cover { get; set; }
    
    /// <summary>
    /// 轮播图
    /// </summary>
    public string Banner { get; set; }
    
    /// <summary>
    /// 详情图
    /// </summary>
    public string Details { get; set; }
    
    /// <summary>
    /// 划线价
    /// </summary>
    public decimal LineationPrice { get; set; }
    
    /// <summary>
    /// 是否上架
    /// </summary>
    public bool Saleable { get; set; }
    
    /// <summary>
    /// 是否删除
    /// </summary>
    public bool Valid { get; set; }
    
    /// <summary>
    /// 规格数据(json对象)
    /// </summary>
    public string Spc { get; set; }
    
    /// <summary>
    /// 上架时间
    /// </summary>
    public DateTime? UpTime { get; set; }
    
    /// <summary>
    /// 下架时间
    /// </summary>
    public DateTime? DownTime { get; set; }
    
    /// <summary>
    /// 商品类型
    /// 1：单品
    /// 2：礼包
    /// </summary>
    public int Type { get; set; }
    
    /// <summary>
    /// 商品规格信息
    /// </summary>
    public List<GoodsSizeList> GodSizeList { get; set; }
}

public class GoodsSizeList
{
    /// <summary>
    /// 规格编码
    /// </summary>
    public string Code { get; set; }
    
    /// <summary>
    /// 缩略图
    /// </summary>
    public string Thumbnail { get; set; }
    
    /// <summary>
    /// 库存
    /// </summary>
    public int Stock { get; set; }
    
    /// <summary>
    /// 是否有效
    /// </summary>
    public bool Valid { get; set; }
    
    /// <summary>
    /// 名称（规格key和value组成）
    /// </summary>
    public string Name { get; set; }
    
    /// <summary>
    /// 映射数量
    /// </summary>
    public int Count { get; set; }
    
    /// <summary>
    /// 是否默认规格
    /// </summary>
    public bool IsDefault { get; set; }
    
    /// <summary>
    /// 单量积分
    /// </summary>
    public int Point { get; set; }
    
    /// <summary>
    /// 零售价
    /// </summary>
    public decimal Price { get; set; }
    
    /// <summary>
    /// V1购买价
    /// </summary>
    public decimal OnePrice { get; set; }
    
    /// <summary>
    /// V2购买价
    /// </summary>
    public decimal TwoPrice { get; set; }
    
    /// <summary>
    /// V3购买价
    /// </summary>
    public decimal ThreePrice { get; set; }
}